EditPage.edit( name, content );
// check
- assert.equal( EditPage.heading.getText(), name );
- assert.equal( EditPage.displayedContent.getText(), content );
+ assert.strictEqual( EditPage.heading.getText(), name );
+ assert.strictEqual( EditPage.displayedContent.getText(), content );
} );
it( 'should be re-creatable', function () {
EditPage.edit( name, content );
// check
- assert.equal( EditPage.heading.getText(), name );
- assert.equal( EditPage.displayedContent.getText(), content );
+ assert.strictEqual( EditPage.heading.getText(), name );
+ assert.strictEqual( EditPage.displayedContent.getText(), content );
} );
it( 'should be editable', function () {
EditPage.edit( name, content );
// check
- assert.equal( EditPage.heading.getText(), name );
- assert.equal( EditPage.displayedContent.getText(), content );
+ assert.strictEqual( EditPage.heading.getText(), name );
+ assert.strictEqual( EditPage.displayedContent.getText(), content );
} );
it( 'should have history', function () {
// check
HistoryPage.open( name );
- assert.equal( HistoryPage.comment.getText(), `(Created page with "${content}")` );
+ assert.strictEqual( HistoryPage.comment.getText(), `(Created page with "${content}")` );
} );
it( 'should be deletable', function () {
DeletePage.delete( name, content + '-deletereason' );
// check
- assert.equal(
+ assert.strictEqual(
DeletePage.displayedContent.getText(),
'"' + name + '" has been deleted. See deletion log for a record of recent deletions.\nReturn to Main Page.'
);
RestorePage.restore( name, content + '-restorereason' );
// check
- assert.equal( RestorePage.displayedContent.getText(), name + ' has been restored\nConsult the deletion log for a record of recent deletions and restorations.' );
+ assert.strictEqual( RestorePage.displayedContent.getText(), name + ' has been restored\nConsult the deletion log for a record of recent deletions and restorations.' );
} );
} );
CreateAccountPage.createAccount( username, password );
// check
- assert.equal( CreateAccountPage.heading.getText(), `Welcome, ${username}!` );
+ assert.strictEqual( CreateAccountPage.heading.getText(), `Welcome, ${username}!` );
} );
it( 'should be able to log in', function () {
UserLoginPage.login( username, password );
// check
- assert.equal( UserLoginPage.userPage.getText(), username );
+ assert.strictEqual( UserLoginPage.userPage.getText(), username );
} );
it( 'should be able to change preferences', function () {
PreferencesPage.changeRealName( realName );
// check
- assert.equal( PreferencesPage.realName.getValue(), realName );
+ assert.strictEqual( PreferencesPage.realName.getValue(), realName );
} );
} );